package org.firecloud.h5fun.model.javabean;

import java.util.Date;

public class CommentaryBean {
	/**
	 * 评论ID
	 */
	private int id;
	/**
	 * 评论的项目ID
	 */
	private int projectId;
	/**
	 * 评论的应用ID
	 */
	private int appId;
	/**
	 * 评论用户ID
	 */
	private int userId;
	/**
	 * 评论内容
	 */
	private String context;
	private UserBean user;
	/**
	 * 评论时间
	 */
	private Date createTime;
	
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public UserBean getUser() {
		return user;
	}
	public void setUser(UserBean user) {
		this.user = user;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getProjectId() {
		return projectId;
	}
	public void setProjectId(int projectId) {
		this.projectId = projectId;
	}
	public int getAppId() {
		return appId;
	}
	public void setAppId(int appId) {
		this.appId = appId;
	}
	public int getUserId() {
		return userId;
	}
	public void setUserId(int userId) {
		this.userId = userId;
	}
	public String getContext() {
		return context;
	}
	public void setContext(String context) {
		this.context = context;
	}
	@Override
	public String toString() {
		return "CommentaryBean [id=" + id + ", projectId=" + projectId + ", appId=" + appId + ", userId=" + userId
				+ ", context=" + context + "]";
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + id;
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		CommentaryBean other = (CommentaryBean) obj;
		if (id != other.id)
			return false;
		return true;
	}
	
	
}
